#include <stdio.h>

int main(void)
{
	int score, k;

	printf("Input an integer between 0 and 100: ");
	scanf("%d", &score);
	k = score / 10;
	switch (k)
	{
	case 0:
	case 1:
	case 2:
	case 3:
	case 4:
	case 5:
		printf("bad\n");
		break;
	case 6:
		printf("pass\n");
		break;
	case 7:
		printf("general\n");
		break;
	case 8:
		printf("good\n");
		break;
	default:
		printf("excellent\n");
	}

	return 0;
}